package com.alinu.workbench.service.impl;

import com.alinu.utils.SqlSessionUtil;
import com.alinu.workbench.domain.Contacts;
import com.alinu.workbench.mapper.ContactsMapper;
import com.alinu.workbench.service.ContactsService;

import java.util.List;

/**
 * @author chenzuwei
 * @date 2021/3/23
 * @description
 */
public class ContactsServiceImpl implements ContactsService {
    private final ContactsMapper contactsMapper = SqlSessionUtil.getSqlSession().getMapper(ContactsMapper.class);

    @Override
    public List<Contacts> findContactsByName(String fullname) {

        return contactsMapper.findContactsByName(fullname);
    }
}
